package com.mmall.seckill.exception;

import com.mmall.seckill.common.CodeMsg;
import lombok.Getter;

/**
 * Created by megan on 2018/6/17.
 * 自定义异常
 */
@Getter
public class GlobalException extends RuntimeException {

    private CodeMsg codeMsg;

    public GlobalException(CodeMsg codeMsg){
        super(codeMsg.toString());
        this.codeMsg = codeMsg;
    }
}
